<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<p>留言信息</p>
<s:if test="persons.size > 0">
	<table>
		<s:iterator value="persons" status="sta">
			<tr id="row_<s:property value="id"/>">
				<td>${sta.index+1}:</td>
				<td>
					<s:property value="firstName" />
				</td>
				<!-- 
				<td>
					<s:property value="lastName" />
				</td>
				 -->
				<td>
					<s:url id="removeUrl" action="remove">
						<s:param name="id" value="id" />
					</s:url>
					<s:url id="resolveProblem" action="resolve">
						<s:param name="id" value="id" />
					</s:url>
					
					<form action="<%=request.getContextPath()%>/resolve.action" method="post">
						<input type="hidden" name="id" value='<s:property value="id" />'/>
						<input type="submit" name="id" value="解决"/>
					</form>
					<div style="display: none;">
						<s:a href="%{removeUrl}" theme="ajax" targets="persons">Remove</s:a>
						<s:a id="a_%{id}" theme="ajax" notifyTopics="/edit">Edit</s:a>
					</div>
				</td>
			</tr>
		</s:iterator>
	</table>
</s:if>

